<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>
<body>
    <script>
        // document.write('来旅梦，去名企');
        // {} 用于创建对象 key: value
        // 男主角
        let ljj = {
            name: '李家君',
            sex: '男',
            hometown: '丰城',
            college: '东华理工大学',
            room: '938',
            isSingle: true,
            age: 18,
            sendflower(target){
                target.receiveflower(ljj)
            }
        }
        // 送花
        // 女主角
        let xh = {
            name: '小红',
            receiveflower(sender){
                console.log('收到了' + sender.name + '送的花')
            }
        }
        let xm = {
            name: '小美',
            hometown: '丰城',
        }

    </script>
</body>
</html>